﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="VacationInfo.aspx.cs" Inherits="Web.VacationInfo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>请假申请 查看</title>
    <meta content="ie=7" http-equiv="x-ua-compatible">
    <link href="Styles/Style01.css" rel="stylesheet" type="text/css" />
    <script src="Scripts/jquery-1.7.min.js" type="text/javascript"></script>
    <script>
        $(function () {
            if ('<%=reqVacationMain.VacationType%>'== "调休") {
                $("#trExchange").show();
            }
        });
    </script>
</head>
<body>
<form id="Form1" runat=server>
<table class="s1 view">
<tr><td>表单编号</td><td><%=reqVacationMain.FormNo%></td><td>申请时间</td><td><%=reqVacationMain.ReqDate.ToString("yyyy-MM-dd HH:mm:ss")%></td></tr>
<tr><td>申请人</td><td><%=empName%></td><td>请假类型</td>
<td><%=reqVacationMain.VacationType%></td></tr>
<tr>
    <td>已批年假(天)</td><td><label id="lblNianJia" name="lblNianJia" runat="server"></label></td>
    <td>总年假(天)</td><td><label id="lblNianJiaTotal" name="lblNianJiaTotal" runat="server"></label></td>
</tr>
    <tr><td>总天数</td><td><%=reqVacationMain.DaysCnt%></td><td></td><td></td></tr>
    <tr><td>值班、加班时间</td><td colspan=3><%=reqVacationMain.ReplacedDay%></td></tr>
    <tr id="trExchange" name="trExchange" style="display:none;background:#ffff99;">
        <td colspan="2">
            <asp:Repeater ID="rptList0" runat="server">
                <HeaderTemplate>
                    <table border="0px" cellpadding="0px" cellspacing="0px" class="s1 list">
			<thead>
				    <tr>
					    <th width="50%">已调休开始时间</th>
					    <th>已调休结束时间</th>
				    </tr>
			</thead>
                </HeaderTemplate>
                <ItemTemplate>
				    <tr>
					    <td><%#Eval("PreStartTime")%></td>
					    <td><%#Eval("PreEndTime")%></td>
				    </tr>
                </ItemTemplate>
                <FooterTemplate>
                </table>
                </FooterTemplate>
            </asp:Repeater>
        </td>
        <td colspan="2">
            <table border="0px" cellpadding="0px" cellspacing="0px" class="s1 list">
			<tr>
				<th width="50%">曾加班开始时间</th>
				<th>曾加班结束时间</th>
			</tr>
            <asp:Repeater ID="rptList2" runat="server">
                <ItemTemplate>
				    <tr>
					    <td><%#Eval("PreStartTime")%></td>
					    <td><%#Eval("PreEndTime")%></td>
				    </tr>
                </ItemTemplate>
            </asp:Repeater>
            <asp:Repeater ID="rptList3" runat="server">
                <ItemTemplate>
                <tr>
                <td><%#Eval("dutydate")%></td>
                <td><%#Eval("dutydate")%></td>
                <td>值班</td>
                </tr>
                </ItemTemplate>
            </asp:Repeater>
            </table>
        </td>
    </tr>
    <tr><td>申请备注</td><td colspan=3><%=reqVacationMain.Cause%></td></tr>
<tr><td>实际开始时间</td><td><%=reqVacationMain.RealStartTime%></td>
<td>实际结束时间</td><td><%=reqVacationMain.RealEndTime%></td></tr>
<tr><td>销单备注</td><td colspan=3><%=reqVacationMain.Remarks%></td></tr>
</table>
<asp:Repeater ID="rptList" EnableViewState="false" Runat="server">
	<HeaderTemplate>
		<table id="tbDetail" class="s1 list">
			<caption>请假明细</caption>
			<thead>
				<TR>
					<th width="35%">预计开始时间</th>
					<th width="35%">预计结束时间</th>
					<th>备注</th>
				</TR>
			</thead><tbody>
	</HeaderTemplate>
	<ItemTemplate>
		<tr class="<%# Container.ItemIndex%2==0?"bg":""%>">
			<td><%#Eval("PreStartTime")%></td>
			<td><%#Eval("PreEndTime")%></td>
			<td><%#Eval("Remarks")%></td>
		</tr>
	</ItemTemplate>
	<FooterTemplate>
		</tbody> </table>
	</FooterTemplate>
</asp:Repeater>
</form>
</body>
</html>